package com.etc.controller;

import com.etc.ResultBody;
import com.etc.service.ISysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 武晓春
 * @Description 用户控制层
 * @Date 2021/2/19  18:17
 **/
@Api(tags = "登录控制层")
@RestController
@RequestMapping("/user")
public class SysUserController {

    @Autowired
    private ISysUserService iSysUserService;
    @ApiOperation(value = "登录")
    @PostMapping("/login")
    public ResultBody login(String username, String password) {
        return iSysUserService.login(username, password);
    }


}
